//
//  SLDeviceSettingCell.h
//  SlockApp
//
//  Created by 凯朱 on 2024/7/29.
//

#import <UIKit/UIKit.h>

@interface SLDeviceSettingModel : NSObject
@property (nonatomic, strong)NSString *sectionName;
@property (nonatomic, strong)NSString *footDesc;
@property (nonatomic, strong)NSString *title;
@property (nonatomic, strong)NSString *content;
@property (nonatomic, strong)UIColor *contentColor;
@property (nonatomic, strong)NSString *desc;
@property (nonatomic, assign)NSInteger style;//1文字+箭头 2-switch 3-文字
@property (nonatomic, assign)BOOL haveTipIcon;
@property (nonatomic, strong)NSString *switchValue;/*1-打开 0-关闭*/
@end



@interface SLDeviceSettingCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *titleLbl;
@property (weak, nonatomic) IBOutlet UILabel *descLbl;
@property (weak, nonatomic) IBOutlet UIView *line;
@property (weak, nonatomic) IBOutlet UISwitch *changeBtn;
@property (weak, nonatomic) IBOutlet UILabel *contentLbl;
@property (weak, nonatomic) IBOutlet UIImageView *icon;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *iconWidth;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *contentRightSpace;
@property (nonatomic, strong)SLDeviceSettingModel *model;/**/
@property (nonatomic,copy) void (^switchBlock)(NSInteger isOpen);

+(CGFloat)cellHeightWith:(SLDeviceSettingModel *)model;
@end


